package legumes.shared.domain;

public enum MenuCount {
	ONE_MENU("1"), HALF_MENU("1/2"), ZERO_MENU("0");

	private String displayName;

	private MenuCount(String displayName_) {
		displayName = displayName_;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	public static MenuCount fromDisplayName(String displayName_) {
		for (MenuCount r : values()) {
			if (r.getDisplayName().equals(displayName_)) {
				return r;
			}
		}
		return null;
	}
}
